home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 7 / developer source - volume 7.iso / msysj / dec96 / weisf103.gif < prev    next >
Graphics Interchange Format  |  1997-04-17  |  50KB  |  515x345  |  4-bit (16 colors)
Labels: text | screenshot | display | number | software | font
OCR: Figure 3 Synchronization Objects MIFC Synchronization Object Win32 Synchronization Mechanisms Purpose Scope Comments CCriticalSection CRITICAL_SECTION Resource Within'n Usually the simplest, most data structure along with BriterCritical- protection process efficient way to protect. Section and related via inutual resources from simultaneous exclusion. access attempts. Lowest villa: overhead mutual exclusion mechanism. CMutex CreateMutex Resource Across Use when you need to protection processes protect resources across Fia mutual processes: for example, to exchision grant exclusive accees to global resources in a DLL (or local COM comportent, shared by different apps. CSemaphore CreateSemaphore Resource Koons a count of the protection via Processos number of threads with a "metered". lock on a resource and access. Often used to limit ecluses additional locks once the specified limit access to a small is reached. set of system performance or other purposes. CEvent CreateEvent Wake-up calls to Across Examples include error- i thread waiting for work to he lopping and processing input from distributed sources. completeri or new input to